import request from '@/utils/request'

// 获取当前登录人所属单位及下级所有单位
export const getCompanyInfo = params => request.get('/pio-microservice-biz/pio/common/under/org/tree', { params })
// 获取所有下级所有单位
export const getCompanyChildren = params => request.get('/pio-microservice-biz/pio/common/under/company/list', { params })
// 获取设备信息
export const getFacilityInformation = id => request.get(`/pio-microservice-biz/pio/monitor/asset/list?orgNo=${id}`)
// 获取当前登录人单位信息
export const getCompanySelfInfo = params => request.get('/pio-microservice-biz/pio/common/user/org', { params })
